package com.objection.inherit;

public class Main {
    public static void main(String[] args) {
        var boss = new Person("yjy", 18, "male");
        var managerBoss = new Manager(boss, 8000, 8000);
        managerBoss.getPersonInformationByStr();
        boss.name = "haha";
        managerBoss.getPersonInformationByStr();
    }
}
